package com.doform.android.xianggucheng.bean.request_bean;

import com.doform.android.xianggucheng.help.AppHelp;
import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-08.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqUpdateAddress {
    /**
     * _savetype 	是 	string 	操作类型：新增：add ； 编辑：update
     * guid 	否 	string 	客户单位地址GUID
     * addr 	是 	string 	联系地址
     * lnkname 	是 	string 	联系人
     * mobile 	是 	string 	手机
     * bizid 	是 	int 	客户id
     * userid 	否 	int 	用户id
     * debug 	是 	string 	开启：true
     */

    private String _savetype = "update";
    private boolean debug = AppHelp.getInstance().Debug;
    private String guid;
    private String addr;
    private String lnkname;
    private String bizid;
    private String mobile;

    public ReqUpdateAddress(String id, String guid, String mName, String mAddress, String mPhone) {

        this.bizid = id;
        this.guid = guid;
        this.addr = mAddress;
        this.lnkname = mName;
        this.mobile = mPhone;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
